<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>L2LB: Referência à estrutura ksock_thread_t</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Gerado por Doxygen 1.5.6 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Página&nbsp;principal</span></a></li>
      <li class="current"><a href="annotated.html"><span>Estruturas&nbsp;de&nbsp;dados</span></a></li>
      <li><a href="files.html"><span>Ficheiros</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Estruturas&nbsp;de&nbsp;dados</span></a></li>
      <li><a href="functions.html"><span>Campos&nbsp;de&nbsp;dados</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>Referência à estrutura ksock_thread_t</h1><!-- doxytag: class="ksock_thread_t" -->Thread usada para estabelecer conexões socket.  
<a href="#_details">Mais...</a>
<p>
<code>#include &lt;<a class="el" href="socket_8h-source.html">socket.h</a>&gt;</code>
<p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Campos de Dados</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct task_struct *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structksock__thread__t.html#34e131d5c7d4d36b7213114ebdf869c0">thread</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Thread onde o socket está executando.  <a href="#34e131d5c7d4d36b7213114ebdf869c0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structksock__thread__t.html#2fd9f49a71f307cb4f2c1ca3940af8cb">fn</a> )(void)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structksock__thread__t.html#f2c4b6bbf29b36dd0bbf5cf97205330a">running</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sinaliza se a thread está em execução (flag).  <a href="#f2c4b6bbf29b36dd0bbf5cf97205330a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct socket *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structksock__thread__t.html#3066dd8c62571dc0017f735319bb815d">sock</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Socket para receber mensagens.  <a href="#3066dd8c62571dc0017f735319bb815d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct sockaddr_in&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structksock__thread__t.html#b05c8fa2261a2415f74822c88667289b">addr</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">struct socket *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structksock__thread__t.html#fde47daf4e0183ec4c067c28b210eb4a">sock_send</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Socket para enviar mensagens.  <a href="#fde47daf4e0183ec4c067c28b210eb4a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct sockaddr_in&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structksock__thread__t.html#1bada36c1d4378aa03ec5eb35b6e8d6b">addr_send</a></td></tr>

</table>
<hr><a name="_details"></a><h2>Descrição detalhada</h2>
Thread usada para estabelecer conexões socket. 
<p>Definido na linha <a class="el" href="socket_8h-source.html#l00014">14</a> do ficheiro <a class="el" href="socket_8h-source.html">socket.h</a>.</p>
<hr><h2>Documentação dos campos e atributos</h2>
<a class="anchor" name="34e131d5c7d4d36b7213114ebdf869c0"></a><!-- doxytag: member="ksock_thread_t::thread" ref="34e131d5c7d4d36b7213114ebdf869c0" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct task_struct* <a class="el" href="structksock__thread__t.html#34e131d5c7d4d36b7213114ebdf869c0">ksock_thread_t::thread</a><code> [read]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Thread onde o socket está executando. 
<p>

<p>Definido na linha <a class="el" href="socket_8h-source.html#l00019">19</a> do ficheiro <a class="el" href="socket_8h-source.html">socket.h</a>.</p>

<p>Referenciado por <a class="el" href="heartbeat_8h-source.html#l00240">hb_udb_client_start()</a>, <a class="el" href="heartbeat_8h-source.html#l00168">hb_udb_server_start()</a> e <a class="el" href="thread_8h-source.html#l00016">nlb_thread_init()</a>.</p>

</div>
</div><p>
<a class="anchor" name="2fd9f49a71f307cb4f2c1ca3940af8cb"></a><!-- doxytag: member="ksock_thread_t::fn" ref="2fd9f49a71f307cb4f2c1ca3940af8cb" args=")(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void(* <a class="el" href="structksock__thread__t.html#2fd9f49a71f307cb4f2c1ca3940af8cb">ksock_thread_t::fn</a>)(void)          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Referenciado por <a class="el" href="heartbeat_8h-source.html#l00326">hb_get_udp_client_thread()</a> e <a class="el" href="heartbeat_8h-source.html#l00316">hb_get_udp_server_thread()</a>.</p>

</div>
</div><p>
<a class="anchor" name="f2c4b6bbf29b36dd0bbf5cf97205330a"></a><!-- doxytag: member="ksock_thread_t::running" ref="f2c4b6bbf29b36dd0bbf5cf97205330a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="structksock__thread__t.html#f2c4b6bbf29b36dd0bbf5cf97205330a">ksock_thread_t::running</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sinaliza se a thread está em execução (flag). 
<p>

<p>Definido na linha <a class="el" href="socket_8h-source.html#l00026">26</a> do ficheiro <a class="el" href="socket_8h-source.html">socket.h</a>.</p>

<p>Referenciado por <a class="el" href="heartbeat_8h-source.html#l00240">hb_udb_client_start()</a> e <a class="el" href="heartbeat_8h-source.html#l00168">hb_udb_server_start()</a>.</p>

</div>
</div><p>
<a class="anchor" name="3066dd8c62571dc0017f735319bb815d"></a><!-- doxytag: member="ksock_thread_t::sock" ref="3066dd8c62571dc0017f735319bb815d" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct socket* <a class="el" href="structksock__thread__t.html#3066dd8c62571dc0017f735319bb815d">ksock_thread_t::sock</a><code> [read]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Socket para receber mensagens. 
<p>

<p>Definido na linha <a class="el" href="socket_8h-source.html#l00031">31</a> do ficheiro <a class="el" href="socket_8h-source.html">socket.h</a>.</p>

<p>Referenciado por <a class="el" href="heartbeat_8h-source.html#l00079">hb_broadcast_msg()</a>, <a class="el" href="heartbeat_8h-source.html#l00240">hb_udb_client_start()</a> e <a class="el" href="heartbeat_8h-source.html#l00168">hb_udb_server_start()</a>.</p>

</div>
</div><p>
<a class="anchor" name="b05c8fa2261a2415f74822c88667289b"></a><!-- doxytag: member="ksock_thread_t::addr" ref="b05c8fa2261a2415f74822c88667289b" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct sockaddr_in <a class="el" href="structksock__thread__t.html#b05c8fa2261a2415f74822c88667289b">ksock_thread_t::addr</a><code> [read]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definido na linha <a class="el" href="socket_8h-source.html#l00032">32</a> do ficheiro <a class="el" href="socket_8h-source.html">socket.h</a>.</p>

<p>Referenciado por <a class="el" href="heartbeat_8h-source.html#l00240">hb_udb_client_start()</a> e <a class="el" href="heartbeat_8h-source.html#l00168">hb_udb_server_start()</a>.</p>

</div>
</div><p>
<a class="anchor" name="fde47daf4e0183ec4c067c28b210eb4a"></a><!-- doxytag: member="ksock_thread_t::sock_send" ref="fde47daf4e0183ec4c067c28b210eb4a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct socket* <a class="el" href="structksock__thread__t.html#fde47daf4e0183ec4c067c28b210eb4a">ksock_thread_t::sock_send</a><code> [read]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Socket para enviar mensagens. 
<p>

<p>Definido na linha <a class="el" href="socket_8h-source.html#l00037">37</a> do ficheiro <a class="el" href="socket_8h-source.html">socket.h</a>.</p>

</div>
</div><p>
<a class="anchor" name="1bada36c1d4378aa03ec5eb35b6e8d6b"></a><!-- doxytag: member="ksock_thread_t::addr_send" ref="1bada36c1d4378aa03ec5eb35b6e8d6b" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct sockaddr_in <a class="el" href="structksock__thread__t.html#1bada36c1d4378aa03ec5eb35b6e8d6b">ksock_thread_t::addr_send</a><code> [read]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definido na linha <a class="el" href="socket_8h-source.html#l00038">38</a> do ficheiro <a class="el" href="socket_8h-source.html">socket.h</a>.</p>

<p>Referenciado por <a class="el" href="heartbeat_8h-source.html#l00079">hb_broadcast_msg()</a> e <a class="el" href="heartbeat_8h-source.html#l00240">hb_udb_client_start()</a>.</p>

</div>
</div><p>
<hr>A documentação para esta estrutura foi gerada a partir do seguinte ficheiro:<ul>
<li><a class="el" href="socket_8h-source.html">socket.h</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Gerado em Wed Sep 10 23:05:56 2008 para L2LB por&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
</body>
</html>
